package com.ysd.lis.controller.qc;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.qc.QcOutControlRec;
import com.ysd.lis.request.qc.QcPageDto;
import com.ysd.lis.service.qc.QcOutControlRecService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 员工表
 * 前端控制器
 * </p>
 *
 * @author pengrongshuai
 * @since 2024-01-20
 */
@Api(tags = "失控处理记录")
@RestController
@RequestMapping("/api/qc/qcOutControlRec")
public class QcOutControlRecController extends BaseController {

    @Autowired
    QcOutControlRecService qcOutControlRecService;

    @GetMapping("/getQcOutControlRecByResultId")
    public Result getQcOutControlRecByResultId(String qcResultId) {
        return qcOutControlRecService.getQcOutControlRecByResultId(qcResultId);
    }
    @GetMapping("/getQcOutControlRecByRecId")
    public Result getQcOutControlRecByRecId(String qcRecId) {
        return qcOutControlRecService.getQcOutControlRecByRecId(qcRecId);
    }

    @ApiOperation("批量新增或修改质控结果（按项目）")
    @PostMapping("/saveQcOutControlRec")
    public Result saveQcOutControlRec(@RequestBody QcOutControlRec param) {
        return qcOutControlRecService.saveQcOutControlRec(param);
    }

    @ApiOperation("查询")
    @GetMapping("/getOutControlRecList")
    public Result getOutControlRecList(QcPageDto param){
        return qcOutControlRecService.getOutControlRecList(param);
    }




}
